import { createRouter, createWebHistory } from 'vue-router'
import Home from './components/Home.vue'
import Login from './components/Login.vue'
import PersonInfo from './components/PersonTable.vue'
import PersonList from './components/PersonList.vue'
import EchartList from './components/EchartList.vue'
import LabelList from './components/LabelList.vue'
import ElCascaderPanelTest from './components/ElCascaderPanelTest.vue'
import ElCascaderTest from './components/ElCascaderTest.vue'
import UploadImage from './components/UploadImage.vue'
import Prize from './components/Prizes.vue'
 
const routes = [
  { path: '/', component: Login },
  { path: '/index', component: Home },
  { path: '/personInfo', component: PersonInfo },
  { path: '/personList', component: PersonList },
  { path: '/echartsList', component: EchartList },
  { path: '/LabelList', component: LabelList },
  { path: '/ElCascaderPanel', component: ElCascaderPanelTest },
  { path: '/ElCascader', component: ElCascaderTest },
  { path: '/labelList', component: LabelList },
  { path: '/uploadImage', component: UploadImage },
  { path: '/prizes', component: Prize },
]
 
const router = createRouter({
  history: createWebHistory(),
  routes,
})
 
export default router